package com.nw.dsl4j.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * apply to boolean fields only.
 * when the given keyword is detected, the boolean is set to false,
 * otherwise, the field is unchanged and retains its default value.
 * note that a similar behaviour can easily acheived by using 
 * EmbeddedRule annotation. 
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Flag {
	public Class<?> keyword();
}
